#ifndef MAINWINDOW_H
#define MAINWINDOW_H

#include <QMainWindow>
#include "qrscclient.h"
#include "qrscserverthread.h"

QT_BEGIN_NAMESPACE
namespace Ui { class MainWindow; }
QT_END_NAMESPACE

class PainterFilter;
class MainWindow : public QMainWindow
{
    Q_OBJECT

public:
    MainWindow(QWidget *parent = nullptr);
    ~MainWindow();
    QRSCClient* getClientPtr(){return _client;}
    void mousePressEvent(QMouseEvent *e);
private slots:
    void on_start_clicked();

    void on_stop_clicked();

    void on_close_clicked();

    void on_starts_clicked();

    void on_stops_clicked();

    void on_pushButton_clicked();

    void on_btnLocal_clicked();

    void on_btnRemote_clicked();

private:
    Ui::MainWindow *ui;
    QRSCClient* _client;
    PainterFilter* _painter;
    QRSCServerThread* m_ThreadServer;
};
#endif // MAINWINDOW_H
